package com.winning.pmph.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.winning.pmph.entity.KnowledgeUnitParseKnowledgeTaskItem;
import com.winning.pmph.mapper.KnowledgeUnitParseKnowledgeTaskItemMapper;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
public class KnowledgeUnitParseKnowledgeTaskItemService extends ServiceImpl<KnowledgeUnitParseKnowledgeTaskItemMapper, KnowledgeUnitParseKnowledgeTaskItem>{
    @Resource
    KnowledgeUnitParseKnowledgeTaskItemMapper knowledgeUnitParseKnowledgeTaskItemMapper;

    public List<KnowledgeUnitParseKnowledgeTaskItem> selectByTaskId(String taskId) {
        return knowledgeUnitParseKnowledgeTaskItemMapper.selectByTaskId(taskId);
    }
    public KnowledgeUnitParseKnowledgeTaskItem singleSelectByTaskId(String taskId) {
        return knowledgeUnitParseKnowledgeTaskItemMapper.selectByTaskId(taskId).get(0);
    }
}
